<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<title>商城登录</title>
<link rel="stylesheet" type="text/css" href="../static/css/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" type="text/css" href="../static/css/my.css">
<script type="text/javascript" src="../static/js/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="../static/js/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript" src="../static/js/myinit.js"></script>
</head>

<body>
<div data-role="page" id="home">
	<div role="main" class="ui-content" style="padding:1em">
		<h1 style="text-align:center">您正在登陆天天惠网网页版</h1>
		<button class="ui-btn ui-btn-corner-all" style="margin-top:250px" id="cmf">确认登录</button>
	</div>
	 
</div>
<script type="text/javascript">
	var code = getUrldata('code');
	var ERWEIMACODE=getUrldata('ERWEIMACODE');
	
 
	
	function setacclogin(){
		var url = '/weixin/setAcctStsLogin/?loginparm='+ERWEIMACODE+'&openid='+code;
		$.getJSON(url,function(rs){
			WeixinJSBridge.call('closeWindow');
		});
		 
	}
	
	
	$(document).on('pageshow','#home',function(){
		
	});
	
	$('#cmf').click(function(){
		setacclogin();
	});
	




</script>
</body>
</html>
